/**
 * 供应链管理路由配置
 */
export default [
  {
    path: '/supply',
    meta: { requiresAuth: true },
    children: [
      {
        path: '',
        redirect: '/supply/overview'
      },
      {
        path: 'overview',
        name: 'SupplyOverview',
        component: () => import('@/views/supply/SupplyChain.vue'),
        meta: { title: '供应链总览' }
      },
      {
        path: 'supply-chain',
        name: 'SupplyChain',
        component: () => import('@/views/supply/SupplyChain.vue'),
        meta: { title: '供应链管理' }
      },
      {
        path: 'planning',
        name: 'SupplyPlanning',
        component: () => import('@/views/supply/Planning.vue'),
        meta: { title: '供应计划' }
      },
      {
        path: 'procurement',
        name: 'SupplyProcurement',
        component: () => import('@/views/supply/Procurement.vue'),
        meta: { title: '采购管理' }
      },
      {
        path: 'inventory-optimization',
        name: 'InventoryOptimization',
        component: () => import('@/views/supply/InventoryOptimization.vue'),
        meta: { title: '库存优化' }
      },
      {
        path: 'supplier-collaboration',
        name: 'SupplierCollaboration',
        component: () => import('@/views/supply/SupplierCollaboration.vue'),
        meta: { title: '供应商协同' }
      },
      {
        path: 'logistics-tracking',
        name: 'LogisticsTracking',
        component: () => import('@/views/supply/LogisticsTracking.vue'),
        meta: { title: '物流跟踪' }
      },
      {
        path: 'demand-forecast',
        name: 'DemandForecast',
        component: () => import('@/views/supply/DemandForecast.vue'),
        meta: { title: '需求预测' }
      },
      {
        path: 'risk-management',
        name: 'SupplyRiskManagement',
        component: () => import('@/views/supply/RiskManagement.vue'),
        meta: { title: '风险管理' }
      },
      {
        path: 'cost-analysis',
        name: 'SupplyCostAnalysis',
        component: () => import('@/views/supply/CostAnalysis.vue'),
        meta: { title: '成本分析' }
      },
      {
        path: 'performance',
        name: 'SupplyPerformance',
        component: () => import('@/views/supply/Performance.vue'),
        meta: { title: '供应链绩效' }
      }
    ]
  }
]

